﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">Sqwarea: Log on</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">

	<script type="text/javascript" src="../../Content/Scripts/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../../Content/Scripts/openid-jquery.js"></script>
	<script type="text/javascript">
	$(document).ready(function() {
	    openid.init('openId');
	});
	</script>
		
    <h1>Log on</h1>
    <br />
<!-- Simple OpenID Selector -->
    <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { id = "openid_form", name = "openid_form" }))
       { %>
	<input type="hidden" name="action" value="verify" />


	<fieldset>    		
	
			<noscript>
            <p>
              No need to register, just log on with you OpenID!
            </p>
            <legend>Enter your OpenID URL:</legend>
            </noscript>
    		<div id="openid_choice">
	    		<p>You don't need to register, just use one of your existing accounts:</p>
	    		<div id="openid_btns"></div>
			</div>
			
			<div id="openid_input_area">
				<input id="openId" name="openId" type="text" value="http://" />
				<input id="openid_submit" type="submit" value="Sign-In" />
			</div>
        <p>
          <%= Html.CheckBox("rememberMe", (bool)ViewData["RememberMe"]) %> <label class="inline" for="rememberMe">Remember me?</label>
        </p>
        
	</fieldset>
    <% } %>
			<noscript>
			<p>OpenID is service that enables you to log-on to many different websites using a single indentity, managed by an account provider. Some of them are listed <a href="http://openid.net/get-an-openid/">here</a>. As you'll find out, you may already have an OpenID! </p>
			</noscript>
	
	

    <p>
      If you don't have an account on the existing providers, you can get one easily <a href="https://www.myopenid.com/signup">here</a> <img src="../../Content/Images/openId/myopenid.ico" alt="MyOpenId" />.
    </p>
</asp:Content>
